from wx import Frame, App
from wx._core import ID_ANY, BoxSizer, HORIZONTAL, EXPAND
from xTab import xTab

class xFrame(Frame):
    def __init__(self, parent, id, title):
        Frame.__init__(self, parent, ID_ANY, title)
        self.sizer = BoxSizer(HORIZONTAL)
        self.SetSizer(self.sizer)
        return

    def setConponent(self, cpn):
        self.sizer.Add(cpn, 1, EXPAND)
        return

def test_xXtab(frame):
    tab = xTab(frm)
    tab.setPath('a')
    tab.setPath('b')
    frm.setConponent(tab)
    return

app = App()
frm = xFrame(None, -1, "Container")
test_xXtab(frm)

frm.Show()
app.MainLoop()